package com.qyer.search.storm.util;

import java.io.Serializable;

/**
 * Created by tangzheng on 16/3/2.
 */
public class SetOutPlace implements Serializable {
  private String place;
  private int id;

  public SetOutPlace() {
  }

  public SetOutPlace(String place, int id) {
    this.place = place;
    this.id = id;
  }

  public String getPlace() {
    return place;
  }

  public int getId() {
    return id;
  }

  public void setPlace(String place) {
    this.place = place;
  }

  public void setId(int id) {
    this.id = id;
  }

  @Override public boolean equals(Object o) {
    if (this == o)
      return true;
    if (o == null || getClass() != o.getClass())
      return false;

    SetOutPlace that = (SetOutPlace) o;

    if (id != that.id)
      return false;
    return place.equals(that.place);

  }

  @Override public int hashCode() {
    int result = place.hashCode();
    result = 31 * result + id;
    return result;
  }

  @Override public String toString() {
    return "SetOutPlace{" +
      "place='" + place + '\'' +
      ", id=" + id +
      '}';
  }
}
